/*
    MarsEngine Shader

	Author: cherlix

    ShadowMap Shader for 3D Objects
*/

cbuffer cbPerObjectVS
{
	matrix worldViewProjMatrix;
};

struct VertexIn
{
    float3 pos     : POSITION;
    float2 tex0	   : TEXCOORD0;
	float3 normal  : NORMAL;
};

struct VertexOut
{
	float4 posH : SV_POSITION;
};

VertexOut VS_Main( VertexIn vin )
{
	VertexOut vout;

	vout.posH = mul( float4( vin.pos, 1.0f ), worldViewProjMatrix );
	//vout.posH = float4( vin.pos, 1.0f );
	//vout.Tex  = mul( float4( vin.tex0, 0.0f, 1.0f ), gTexTransform ).xy;

	return vout;
}
